package com.mj.fragment;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

import com.mj.R;
import com.mj.activity.Activity_Shaixuan;
import com.mj.activity.publish.PublishActivity;
import com.mj.base.BaseFragment;

public class Fragment_kaiju extends BaseFragment {
	@Override
	protected int getID() {
		return R.layout.fragment_kaiju;
	}

	@Override
	protected void editView() {
		// title
		aq.id(R.id.tv_title).text("");
		aq.id(R.id.btn_left).background(R.drawable.title_btn_left).text("筛选").clicked(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getActivity(), Activity_Shaixuan.class);
				startActivity(intent);
			}
		});
		aq.id(R.id.btn_right).background(R.drawable.title_btn_right).text("发布").clicked(this, "publish");
	}

	/***
	 * 发布
	 */
	public void publish() {
		Intent intent = new Intent(baseActivity, PublishActivity.class);
		startActivity(intent);
	}
}
